﻿// -----------------------------------------------------------------------
// Copyright (c) David Kean. All rights reserved.
// -----------------------------------------------------------------------
extern alias pcl;
using System;
using System.IO;
using System.Linq.Expressions;
using pcl::System.Security.Cryptography.Adaptation;

namespace Portable
{
    internal class IProtectedDataFactoryFactory : MockFactory<IProtectedDataFactory>
    {
        public static IProtectedDataFactory Override<TResult>(Expression<Func<IProtectedDataFactory, TResult>> action, TResult value)
        {
            var mock = CreateMock();
            mock.Setup(action)
                .Returns(value);
            
            return mock.Object;
        }
    }
}
